/*******************************************************************************
 * Copyright (c) 2005, 2014 springside.github.io
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 *******************************************************************************/
package net.wofly.sale.stock.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import net.wofly.sale.stock.domain.ResourceAskList;

public interface ResourceAskListRepository
        extends PagingAndSortingRepository<ResourceAskList, String>, JpaSpecificationExecutor<ResourceAskList> {

    void deleteByResourceAskID(String resourceAskID);
    
    List<ResourceAskList> findByResourceAskID(String resourceAskID)  ;
    
    public ResourceAskList findByResourceAskIDAndCommodityTerminalID(String resourceAskID, String commodityTerminalID);

}